package com.dcy.znoa.service.publiz;

import com.dcy.znoa.common.util.pojo.JsonCommon;
import com.dcy.znoa.common.util.pojo.JsonForList;
import com.dcy.znoa.controller.publiz.model.companyAddress.SelectCompanyAddressModel;
import com.dcy.znoa.domain.Oper;
import com.dcy.znoa.domain.publiz.CompanyAddress;

import java.lang.reflect.InvocationTargetException;

/**
 * <p>
 * 企业地址表：目前用于与物业交互时使用，只有一个是默认的地址。 服务类
 * </p>
 *
 * @author cook
 * @since 2018-05-24
 */
public interface CompanyAddressService  {

    JsonForList selectList(Oper oper, SelectCompanyAddressModel model);

    int insert(CompanyAddress cp);

    int updateById(CompanyAddress cp) throws InvocationTargetException, IllegalAccessException;

    int delById(Long caId);
}
